package com.voxel.sense.infomsg.module.task.check.holder;

import android.view.View;
import android.widget.ImageView;

import com.example.com.common.view.recycler.RecyclerAdapter;
import com.voxel.sense.infomsg.R;
import com.voxel.sense.infomsg.data.bean.MultiItemBean;
import com.voxel.sense.infomsg.utils.GlideUtils;

import butterknife.BindView;
import cyy.example.com.facotry.constants.CommonConstants;

/**
 * @author ChenYiYao
 * @date 2018/5/14
 * des :
 */
public class ImageHolderView extends RecyclerAdapter.ViewHolder<MultiItemBean<String>> {
    @BindView(R.id.iv_pic)
    ImageView iv_pic;
    @BindView(R.id.iv_delete)
    ImageView iv_delete;

    public ImageHolderView(View itemView) {
        super(itemView);
    }

    @Override
    protected void onBind(MultiItemBean<String> bean) {
        iv_delete.setVisibility(View.GONE);
        GlideUtils.GlideLoadPic(iv_pic.getContext(), CommonConstants.FILE_TASK_URL + bean.getData(), iv_pic);
    }
}
